package demo.service.impl;

import java.util.List;

import demo.dao.impl.UserDaoImpl;
import demo.entity.User;
import demo.service.UserService;

public class UserServiceImpl extends GenericServiceImpl<User, Integer, UserDaoImpl> implements UserService {

	@Override
	public User login(String queryString, String[] values) {
		List<User> list = getGeneralDao().login(queryString, values);
		if (list.size() == 0) {
			return null;
		} else {
			return list.get(0);
		}
	}

}
